import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/chat',//聊天页面
      name: '聊天',
      component:()=>import('@/components/demo/Chat')
    },
    {
      path: '/login',
      name: '登录',//描述
      component:()=>import('@/components/page/Login')
    },
    {
      path: '/index',
      name: '首页',//描述
      component:()=>import('@/components/page/Index'),
      children:[
          {
            path: 'companyNode',
            name: '公司节点',//描述
            component:()=>import('@/components/page/CompanyNode')
          },
          {
            path: 'Node',
            name: '公司节点',//描述
            component:()=>import('@/components/page/Node')
          },
          {
            path: 'documentUpload',
            name: '文档维护',//描述
            component:()=>import('@/components/page/document_upload')
          },
      ]
    },

  ]
})
